package com.study.basetype.util;

import com.study.basetype.entity.common.ResponseEntity;
import com.study.basetype.entity.common.ResultEntity;
import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.Map;

/**
 * @author flwu
 * @date 2020/3/21 8:26 PM
 * @MOTTO 保持空杯和敬畏
 */
public interface RequestHttpInterface {

    public String HttpGet(String url);

    public String httpGet(String url, Map<String, String> params);

    public String HttpGet(String url, Map<String, String> params, Map<String, String> headers);

    public String HttpsGet(String url);

    public String httpsGet(String url, Map<String, String> params);

    public String HttpsGet(String url, Map<String, String> params, Map<String, String> headers);


    /** 以下为post请求 */

    public String httpPost(String url, Map<String, String> params);

    public String HttpPost(String url, Map<String, String> params, Map<String, String> headers);

    public String httpsPost(String url, Map<String, String> params);

    public String HttpsPost(String url, Map<String, String> params, Map<String, String> headers);



}
